<?php
// Define path to application directory
define('APPLICATION_PATH', dirname(__FILE__) . '/../');
include(APPLICATION_PATH . 'common.php');


function __autoload($class_name)
{
	$filename = strtolower($class_name) . '.php';
	$file = APPLICATION_PATH . '/models/' . $filename;
	if (file_exists($file) == false)
	{
		return false;
	}
	include ($file);
}


$application = new Application();
$application->run();
?>
